package minijava.semantic;

/**
 * Created by xuefengDong: moveb
 * On 2020/7/3- 21:12
 */
public class IntType extends BuiltinTypeSymbol {
    public IntType(String name) {
        super(name);
    }

    @Override
    public String toString() {
        return " int";
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof IntType))
            return false;
        IntType other = (IntType)o;
        if(this.name.equals(other.name)){
            return true;
        }
        return false;
    }
}
